var express = require('express');
var router = express.Router();

/*数据分析*/
router.get('/dataanalysis', function (req, res, next) {
    res.render('dataanalysis/dataanalysis', {title: 'dataanalysis'});
});

router.get('/dataanalysis/showdataAlysis', function (req, res, next) {
    console.log(req.query.dataType);
    console.log(req.query.recordTime);
    console.log(req.query.timeType);
    var data = {
        "resultCode": 200,
        "resultMsg": "请求成功",
        "data": {"total": 4, "data": {
            "horizontalDatas": ["邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb", "邻倨小妹ニホンゴ（暑假.rmvb",
                "邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb",
                "邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb",
                "邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb",
                "邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb",
                "邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb",
                "邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb",
                "邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb","邻倨小妹ニホンゴ（暑假.rmvb"],
            "ordinateDatas": [4,5,6,7,5,
                2,30,4,5,6,
                7,5,4,5,6,
                7,5,4,5,6,
                7,5,4,50,6,
                7,5,2,3,4,
                5,6,70,5,4,
                5,6,7,5,4]
        }}
    };
    res.send(data);
});

module.exports = router;